How I transformed from a good java developer to a great one: a detailed guide to using design patterns in java to improve your coding skills and software quality by John Arthur

How I transformed from a good java developer to a great one: a detailed guide to using design patterns in java to improve your coding skills and software quality by John Arthur

Author:John Arthur [Arthur, John]
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2017-04-23T07:00:00+00:00


Step 3

Verify the output.

Employee :[ Name : John, dept : CEO, salary :30000 ] Employee :[ Name : Robert, dept : Head Sales, salary :20000 ] Employee :[ Name : Richard, dept : Sales, salary :10000 ] Employee :[ Name : Rob, dept : Sales, salary :10000 ] Employee :[ Name : Michel, dept : Head Marketing, salary :20000 ] Employee :[ Name : Laura, dept : Marketing, salary :10000 ] Employee :[ Name : Bob, dept : Marketing, salary :10000 ]

Chapter 5. Observer

Observer pattern is used when there is one-to-many relationship between objects such as if one object is modified, its depenedent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.

Model the "independent" functionality with a "subject" abstraction

Model the "dependent" functionality with "observer" hierarchy



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.